#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "./../inc/db_link_list.h"

int main(int argc,char ** argv)
{   
    NODE *db_link_list = NULL;
    db_link_list = create_link_list();
    if(db_link_list != NULL)
    {
        printf("create db_link list succeed.\r\n");
    }
    LINK_LIST_DATA_TYPE data =
    {
        .is_encryption = 0,
        .data_format = "str",
        .supplement = NULL,
        .content = "0" ,
    } ;
    LINK_LIST_DATA_TYPE data1 =
    {
        .is_encryption = 0,
        .data_format = "str",
        .supplement = NULL,
        .content = "1" ,
    } ;
    LINK_LIST_DATA_TYPE data2 =
    {
        .is_encryption = 0,
        .data_format = "str",
        .supplement = NULL,
        .content = "2" ,
    } ;
    LINK_LIST_DATA_TYPE data3 =
    {
        .is_encryption = 0,
        .data_format = "str",
        .supplement = NULL,
        .content = "3" ,
    } ;
    LINK_LIST_DATA_TYPE data4 =
    {
        .is_encryption = 0,
        .data_format = "str",
        .supplement = NULL,
        .content = "4" ,
    } ;
    printf("----------------------------------------------\r\n");
    add_link_list(link_list,HEAD_INSERT,&data);
    add_link_list(link_list,HEAD_INSERT,&data1);
    add_link_list(link_list,HEAD_INSERT,&data2);
    add_link_list(link_list,TRAIL_INSERT,&data3);
    show_link_list(link_list);
    printf("----------------------------------------------\r\n");
    add_link_list(link_list,2,&data4);
    show_link_list(link_list);
    printf("----------------------------------------------\r\n");
    while(1)
    {
        
    }
    return 0;
}